#ifndef RESPONSIVECONFIG_H
#define RESPONSIVECONFIG_H

/**
 * 🎨 ResponsiveConfig - Sony Ive 响应式配置
 *
 * 统一管理响应式文件列表的配置选项
 */

namespace ResponsiveConfig {

    // === 默认配置 ===
    constexpr bool DEFAULT_RESPONSIVE_MODE = true;        // 默认启用响应式模式
    constexpr bool DEFAULT_SONY_ANIMATIONS = true;        // 默认启用Sony风格动画
    constexpr bool DEFAULT_PERFORMANCE_OPTIMIZATION = true; // 默认启用性能优化

    // === Sony Ive 设计参数 ===
    namespace SonyDesign {
        constexpr int MICRO_MODE_THRESHOLD = 180;         // Micro模式阈值(px)
        constexpr int COMPACT_MODE_THRESHOLD = 250;       // Compact模式阈值(px)
        constexpr int STANDARD_MODE_THRESHOLD = 350;      // Standard模式阈值(px)
        constexpr int EXPANDED_MODE_THRESHOLD = 450;      // Expanded模式阈值(px)

        constexpr int ANIMATION_DURATION = 250;           // 动画持续时间(ms)
        constexpr int HOVER_ANIMATION_DURATION = 150;     // 悬停动画(ms)
        constexpr int SELECTION_ANIMATION_DURATION = 200; // 选择动画(ms)

        constexpr double HOVER_SCALE_FACTOR = 1.05;       // 悬停缩放因子
        constexpr double SELECTION_SCALE_FACTOR = 1.02;  // 选择缩放因子

        // Sony色彩配置
        namespace Colors {
            constexpr int ACCENT_BLUE_R = 0, ACCENT_BLUE_G = 123, ACCENT_BLUE_B = 255;
            constexpr int ACCENT_BLUE_DARK_R = 0, ACCENT_BLUE_DARK_G = 86, ACCENT_BLUE_DARK_B = 179;
            constexpr int BACKGROUND_LIGHT_R = 255, BACKGROUND_LIGHT_G = 255, BACKGROUND_LIGHT_B = 255;
            constexpr int BACKGROUND_MEDIUM_R = 248, BACKGROUND_MEDIUM_G = 248, BACKGROUND_MEDIUM_B = 248;
            constexpr int TEXT_PRIMARY_R = 33, TEXT_PRIMARY_G = 33, TEXT_PRIMARY_B = 33;
            constexpr int TEXT_SECONDARY_R = 100, TEXT_SECONDARY_G = 100, TEXT_SECONDARY_B = 100;
        }
    }

    // === 性能优化配置 ===
    namespace Performance {
        constexpr int CACHE_UPDATE_DELAY = 100;           // 缓存更新延迟(ms)
        constexpr int LAYOUT_UPDATE_DELAY = 50;           // 布局更新延迟(ms)
        constexpr int ANIMATION_THROTTLE_DELAY = 16;      // 动画节流延迟(~60fps)
        constexpr int MAX_CACHED_ITEMS = 1000;            // 最大缓存项目数
        constexpr bool ENABLE_BACKGROUND_CACHING = true;  // 启用背景缓存
        constexpr bool ENABLE_LAYOUT_CACHING = true;      // 启用布局缓存
        constexpr bool ENABLE_TEXT_METRICS_CACHING = true; // 启用文本度量缓存
    }

    // === 功能开关 ===
    namespace Features {
        constexpr bool ENABLE_DRAG_DROP = true;           // 启用拖拽功能
        constexpr bool ENABLE_MULTI_SELECTION = true;     // 启用多选功能
        constexpr bool ENABLE_CONTEXT_MENU = true;        // 启用右键菜单
        constexpr bool ENABLE_KEYBOARD_NAVIGATION = true; // 启用键盘导航
        constexpr bool ENABLE_TOOLTIP_IN_MICRO_MODE = true; // Micro模式启用工具提示
        constexpr bool ENABLE_SMOOTH_SCROLLING = true;    // 启用平滑滚动
    }

}

#endif // RESPONSIVECONFIG_H